import request from "@/utils/request";
type Subjectliebiao = {
    sendUserName: null
    pageIndex: number
    pageSize: number
}

type SubjectResponseType<T> = {
    total: number
    list: T[]
}

export type SubjectdaType = {
    id: number,   //消息id
    title: string,  //消息标题
    content: string,  //消息内容
    sendUserName: string,  //发送人用户名
    receives: string,  //接收人用户名
    receiveUserCount: number,  //接收人数量
    readCount: number,  //已读数量
    createTime: string //创建时间
}
export function subjectPage(data:Subjectliebiao) {
    return request.post<SubjectResponseType<SubjectdaType>>("/api/admin/message/page",data)
}